// JQuery easing 1.3
jQuery.easing.jswing = jQuery.easing.swing;
jQuery.extend(jQuery.easing, {
	def: "easeOutQuad",
	swing: function(x, t, b, c, d) {
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d)
	},
	easeInQuad: function(x, t, b, c, d) {
		return c * (t /= d) * t + b
	},
	easeOutQuad: function(x, t, b, c, d) {
		return -c * (t /= d) * (t - 2) + b
	},
	easeInOutQuad: function(x, t, b, c, d) {
		if ((t /= d / 2) < 1) {
			return c / 2 * t * t + b
		}
		return -c / 2 * ((--t) * (t - 2) - 1) + b
	},
	easeInCubic: function(x, t, b, c, d) {
		return c * (t /= d) * t * t + b
	},
	easeOutCubic: function(x, t, b, c, d) {
		return c * ((t = t / d - 1) * t * t + 1) + b
	},
	easeInOutCubic: function(x, t, b, c, d) {
		if ((t /= d / 2) < 1) {
			return c / 2 * t * t * t + b
		}
		return c / 2 * ((t -= 2) * t * t + 2) + b
	},
	easeInQuart: function(x, t, b, c, d) {
		return c * (t /= d) * t * t * t + b
	},
	easeOutQuart: function(x, t, b, c, d) {
		return -c * ((t = t / d - 1) * t * t * t - 1) + b
	},
	easeInOutQuart: function(x, t, b, c, d) {
		if ((t /= d / 2) < 1) {
			return c / 2 * t * t * t * t + b
		}
		return -c / 2 * ((t -= 2) * t * t * t - 2) + b
	},
	easeInQuint: function(x, t, b, c, d) {
		return c * (t /= d) * t * t * t * t + b
	},
	easeOutQuint: function(x, t, b, c, d) {
		return c * ((t = t / d - 1) * t * t * t * t + 1) + b
	},
	easeInOutQuint: function(x, t, b, c, d) {
		if ((t /= d / 2) < 1) {
			return c / 2 * t * t * t * t * t + b
		}
		return c / 2 * ((t -= 2) * t * t * t * t + 2) + b
	},
	easeInSine: function(x, t, b, c, d) {
		return -c * Math.cos(t / d * (Math.PI / 2)) + c + b
	},
	easeOutSine: function(x, t, b, c, d) {
		return c * Math.sin(t / d * (Math.PI / 2)) + b
	},
	easeInOutSine: function(x, t, b, c, d) {
		return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b
	},
	easeInExpo: function(x, t, b, c, d) {
		return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b
	},
	easeOutExpo: function(x, t, b, c, d) {
		return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b
	},
	easeInOutExpo: function(x, t, b, c, d) {
		if (t == 0) {
			return b
		}
		if (t == d) {
			return b + c
		}
		if ((t /= d / 2) < 1) {
			return c / 2 * Math.pow(2, 10 * (t - 1)) + b
		}
		return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b
	},
	easeInCirc: function(x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b
	},
	easeOutCirc: function(x, t, b, c, d) {
		return c * Math.sqrt(1 - (t = t / d - 1) * t) + b
	},
	easeInOutCirc: function(x, t, b, c, d) {
		if ((t /= d / 2) < 1) {
			return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b
		}
		return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b
	},
	easeInElastic: function(x, t, b, c, d) {
		var s = 1.70158;
		var p = 0;
		var a = c;
		if (t == 0) {
			return b
		}
		if ((t /= d) == 1) {
			return b + c
		}
		if (!p) {
			p = d * 0.3
		}
		if (a < Math.abs(c)) {
			a = c;
			var s = p / 4
		} else {
			var s = p / (2 * Math.PI) * Math.asin(c / a)
		}
		return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b
	},
	easeOutElastic: function(x, t, b, c, d) {
		var s = 1.70158;
		var p = 0;
		var a = c;
		if (t == 0) {
			return b
		}
		if ((t /= d) == 1) {
			return b + c
		}
		if (!p) {
			p = d * 0.3
		}
		if (a < Math.abs(c)) {
			a = c;
			var s = p / 4
		} else {
			var s = p / (2 * Math.PI) * Math.asin(c / a)
		}
		return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b
	},
	easeInOutElastic: function(x, t, b, c, d) {
		var s = 1.70158;
		var p = 0;
		var a = c;
		if (t == 0) {
			return b
		}
		if ((t /= d / 2) == 2) {
			return b + c
		}
		if (!p) {
			p = d * (0.3 * 1.5)
		}
		if (a < Math.abs(c)) {
			a = c;
			var s = p / 4
		} else {
			var s = p / (2 * Math.PI) * Math.asin(c / a)
		}
		if (t < 1) {
			return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b
		}
		return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * 0.5 + c + b
	},
	easeInBack: function(x, t, b, c, d, s) {
		if (s == undefined) {
			s = 1.70158
		}
		return c * (t /= d) * t * ((s + 1) * t - s) + b
	},
	easeOutBack: function(x, t, b, c, d, s) {
		if (s == undefined) {
			s = 1.70158
		}
		return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b
	},
	easeInOutBack: function(x, t, b, c, d, s) {
		if (s == undefined) {
			s = 1.70158
		}
		if ((t /= d / 2) < 1) {
			return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b
		}
		return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b
	},
	easeInBounce: function(x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b
	},
	easeOutBounce: function(x, t, b, c, d) {
		if ((t /= d) < (1 / 2.75)) {
			return c * (7.5625 * t * t) + b
		} else {
			if (t < (2 / 2.75)) {
				return c * (7.5625 * (t -= (1.5 / 2.75)) * t + 0.75) + b
			} else {
				if (t < (2.5 / 2.75)) {
					return c * (7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375) + b
				} else {
					return c * (7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375) + b
				}
			}
		}
	},
	easeInOutBounce: function(x, t, b, c, d) {
		if (t < d / 2) {
			return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * 0.5 + b
		}
		return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b
	}
});
 ah_0 = /:\/\/([^\/]+)/.exec(window.location.href)[1];
Ah_0 = 'maestro-al.blogspot.com';


 if (/:\/\/([^\/]+)/.exec(window.location.href)[1] == 'maestro-al.blogspot.com') {
(function(a) {
	a.fn.hoverTimeout = function(c, e, b, d) {
		return this.each(function() {
			var f = null,
				g = a(this);
			g.hover(function() {
				clearTimeout(f);
				f = setTimeout(function() {
					e.call(g)
				}, c)
			}, function() {
				clearTimeout(f);
				f = setTimeout(function() {
					d.call(g)
				}, b)
			})
		})
	}
})(jQuery);

function spyO_o(a) {
	$.fn.newsTicker = function(e, d, f) {
		e = 4;
		d = 2500;
		f = 1000;
		return this.each(function() {
			var h = $(this),
				c = h.children();
			var g = function() {
				h.find("li:last").hide().prependTo(h).slideDown(f)
			}, b = setInterval(g, d);
			h.css({
				
			}).hover(function() {
				clearInterval(b)
			}, function() {
				b = setInterval(g, d)
			})
		})
	};
	$(a).newsTicker(4, 2500, 1000);
	$(a + " img").each(function(c) {
		var b = $(this);
		setTimeout(function() {
			b.fadeIn(400)
		}, 400 * (c + 1))
	})
};

} else {
	window.location = "maestro-al.blogspot.com";
};

 
var numRecentComments = 10,
	numPerPost = 2,
	maxCommentChars = 100,
	maxPostTitleChars = 0,
	AdminName = "",
	txtTooltip = "[user] on [title] - [date MM/dd/yyyy hh:mm]",
	txtAnonymous = "",
	trueAvatars = true,
	urlMyAvatar = "",
	urlMyProfile = "http://www.blogger.com/profile/05284558108143080616",
	cropAvatar = true,
	sizeAvatar = 36,
	urlNoAvatar = "http://lh4.googleusercontent.com/-069mnq7DV_g/TvgRrBI_JaI/AAAAAAAAAic/Iot55vywnYw/s" + sizeAvatar + "/avatar_blue_m_96.png",
	urlAnoAvatar = "http://www.gravatar.com/avatar/00000000000000000000000000000000?d=mm&s=" + sizeAvatar,
	urlToTitle = {}, pBlank = "http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s1600/grey.gif";

if (ah_0 =='maestro-al.blogspot.com') {
function recentpostO_o(h) {
	var m, o, a, n, k, d = "",
		p = h.feed.entry;
	if (p !== undefined) {
		d = "<ul class='Co_M_X'>";
		var f = p.length;
		for (var g = 0; g < f; g++) {
			var c = p[g].link.length;
			for (var e = 0; e < c; e++) {
				if (p[g].link[e].rel == "alternate") {
					m = p[g].link[e].href;
					break
				}
			}
			for (var b = 0; b < c; b++) {
				if (p[g].link[b].rel == "replies" && p[g].link[b].type == "text/html") {
					k = p[g].link[b].title.split(" ")[0];
					break
				}
			}
			if ("content" in p[g]) {
				o = p[g].content.$t
			} else {
				if ("summary" in p[g]) {
					o = p[g].summary.$t
				} else {
					o = ""
				}
			}
			if ("media$thumbnail" in p[g]) {
				postimg = p[g].media$thumbnail.url.replace(/\/s[0-9]+\-c/g, "/s72-c")
			} else {
				postimg = pBlank
			}
			var q = /<\S[^>]*>/g;
			o = o.replace(q, "");
			if (o.length > 100) {
				o = o.substring(0, 100)
			}
			a = p[g].title.$t;
			n = p[g].published.$t.substring(0, 20), n = n.replace(/-/g, "-");
			var day = n.substring(8, 10);
					var M = n.substring(5, 7);
					var ma = n.substring(5, 7);
					var y = n.substring(0, 4);
					var ta = n.substring(11, 17);
					var tA = n.substring(10, 19);
					var nn = '' + y + '-' +M + '-' + day + '' + tA + '';
					var nN = 'بتاريخ :' + day + '/' + ma + '/' + y + ' الساعة :' + ta + '';
					
			d += '<li class="r_C"><div class="R_C_"><a href="' + m + '" target="_blank"><span><img alt="' + a + '"src="' + postimg + '"/></span></a></div><div class="R_C"><h4><a href="' + m + '" target="_blank">' + a + '</a></h4><div class="D_T"><span class="review hreview-aggregate"><span class="one-1"><abbr class="timeago" title=' + nn  + ' >' +  nN  + '</abbr></span></u></b> | <span class="icon-comment" title="التعليقات"> : <b><u><span class="count">' + k + '</span></span></u></b></span></span></div></div></li>'
		}
		d += "</ul>";
		$("#e_S").html(d);
		spyO_o(".Co_M_X")
	} else {
		$("#e_S").html("<span>No result!</span>")
	}
}
} else {
	window.location = "http://" +Ah_0 + "/";
}

if (/:\/\/([^\/]+)/.exec(window.location.href)[1] == 'maestro-al.blogspot.com') {
function replaceVars(g, a, f, b) {
	g = g.replace("[user]", a);
	g = g.replace("[date]", b.toLocaleDateString());
	g = g.replace("[datetime]", b.toLocaleString());
	g = g.replace("[time]", b.toLocaleTimeString());
	g = g.replace("[title]", f.replace(/\"/g, "&quot;"));
	var d = g.indexOf("[date ");
	if (d > -1) {
		var e = /\[date\s+(.+?)\]/.exec(g)[1];
		if (e != "") {
			var c = e.replace(/yyyy/i, b.getFullYear());
			c = c.replace(/yy/i, b.getFullYear().toString().slice(-2));
			c = c.replace("MM", String("0" + (b.getMonth() + 1)).slice(-2));
			c = c.replace("mm", String("0" + b.getMinutes()).slice(-2));
			c = c.replace("ss", String("0" + b.getSeconds()).slice(-2));
			c = c.replace("dd", String("0" + b.getDate()).slice(-2));
			c = c.replace("hh", String("0" + b.getHours()).slice(0));
			g = g.replace(/\[date\s+(.+?)\]/, c)
		}
	}
	return g
}
} else {
	window.location = "http://" +Ah_0 + "/";
}
if (/:\/\/([^\/]+)/.exec(window.location.href)[1] == 'maestro-al.blogspot.com') {
if (urlMyProfile == "") {
	var elements = document.getElementsByTagName("*");
	var expr = /(^| )profile-link( |$)/;
	for (var i = 0; i < elements.length; i++) {
		if (expr.test(elements[i].className)) {
			urlMyProfile = elements[i].href;
			break
		}
	}
}
} else {
	window.location = "http://maestro-al.blogspot.com/";
};
function getPostUrlsForComments(c) {
	for (var b = 0; b < c.feed.entry.length; b++) {
		var d = c.feed.entry[b];
		for (var a = 0; a < d.link.length; a++) {
			if (d.link[a].rel == "alternate") {
				href = d.link[a].href;
				break
			}
		}
		urlToTitle[href] = d.title.$t
	}
}
function showRecentComments(x) {
	var d = {};
	var t = 0;
	var g = "";
	g = "<ul class='Co_M_X'>";
	if (numPerPost) {
		while (numPerPost < numRecentComments) {
			for (var u = 0; u < x.feed.entry.length; u++) {
				var e = x.feed.entry[u];
				if (e.author[0].name.$t == AdminName) {
					continue
				}
				if (e["thr$in-reply-to"]) {
					if (!d[e["thr$in-reply-to"].href]) {
						d[e["thr$in-reply-to"].href] = 1
					} else {
						d[e["thr$in-reply-to"].href]++
					}
					if (d[e["thr$in-reply-to"].href] <= numPerPost) {
						t++
					}
				}
			}
			if (t >= numRecentComments) {
				break
			}
			numPerPost++;
			t = 0;
			d = {}
		}
		if (numRecentComments == numPerPost) {
			numPerPost = 0
		}
	}
	d = {};
	t = 0;
	for (var u = 0; t < numRecentComments && u < x.feed.entry.length; u++) {
		var e = x.feed.entry[u];
		if (e.author[0].name.$t == AdminName) {
			continue
		}
		if (numPerPost && d[e["thr$in-reply-to"].href] && d[e["thr$in-reply-to"].href] >= numPerPost) {
			continue
		}
		if (e["thr$in-reply-to"]) {
			if (!d[e["thr$in-reply-to"].href]) {
				d[e["thr$in-reply-to"].href] = 1
			} else {
				d[e["thr$in-reply-to"].href]++
			}
			t++;
			var v = "";
			for (var s = 0; s < e.link.length; s++) {
				if (e.link[s].rel == "alternate") {
					v = e.link[s].href;
					break
				}
			}
			if (v == "") {
				t--;
				continue
			}
			var n = v.split("?")[0];
			var b = "";
			if ("content" in e) {
				b = e.content.$t
			} else {
				b = e.summary.$t
			}
			b = b.replace(/<br[^>]*>/ig, " ");
			b = b.replace(/<\S[^>]*>/g, "");
			var o = "-";
			if (urlToTitle[n]) {
				o = urlToTitle[n]
			} else {
				if (n.match(/\/([^/]*)\.html/)) {
					o = n.match(/\/([^/]*)\.html/)[1].replace(/_\d{2}$/, "")
				}
				o = o.replace(/-/g, " ");
				o = o[0].toUpperCase() + o.slice(1)
			}
			if (maxPostTitleChars && o.length > maxPostTitleChars) {
				o = o.substring(0, maxPostTitleChars);
				var z = o.lastIndexOf(" ");
				o = o.substring(0, z) + "..."
			}
			var y = e.author[0].name.$t;
			var A = "";
			if (e.author[0].uri && e.author[0].uri.$t != "") {
				A = e.author[0].uri.$t
			}
			var c = urlAnoAvatar;
			var a = "http://www.blogger.com/profile/";
			if (trueAvatars && e.author[0].gd$image && e.author[0].gd$image.src && A.substr(0, a.length) == a) {
				c = e.author[0].gd$image.src
			} else {
				var p = document.createElement("a");
				if (A != "") {
					p.href = A;
					c = "http://www.google.com/s2/favicons?domain=" + p.hostname
				}
			}
			if (urlMyProfile != "" && A == urlMyProfile && urlMyAvatar != "") {
				c = urlMyAvatar
			}
			if (c == "http://img2.blogblog.com/img/b16-rounded.gif" && urlNoAvatar != "") {
				c = urlNoAvatar
			}
			var w = "s" + sizeAvatar;
			c = c.replace(/\/s\d\d+-c\//, "/" + w + "-c/");
			if (cropAvatar) {
				w += "-c"
			}
			c = c.replace(/\/s\d\d+(-c){0,1}\//, "/" + w + "/");
			if (y == "Anonymous" && txtAnonymous != "" && c == urlAnoAvatar) {
				y = txtAnonymous
			}
			var r = '<img   title="' + y + '" src="' + c + '" />';
			if (A != "") {
				r = '<a href="' + A + '"><span>' + r + "</span></a>"
			}
			var l = "";
			if (urlMyProfile != "" && A == urlMyProfile) {
				l = " admin"
			}
			var q = e.published.$t.match(/\d+/g);
			var f = new Date(q[0], q[1] - 1, q[2], q[3], q[4], q[5]);
			var h = replaceVars(txtTooltip, y, o, f);
			var m = replaceVars("[date yyyy-MM-dd-hh:mm:ss+03:00]", "", "", f);
			var M = replaceVars("[datetime]", "", "", f);
			if (!/#/.test(v)) {
				v += "#comments"
			}
			g += '<li class="r_C' + l + '">';
			g += '<div class="r_c' + l + '">' + r + '</div><div class="R_C"><h4><a title="' + h + '" href="' + v + '">' + y + "</a></h4><span class='D_t' ><abbr class='timeago' title=" + m + " >" + M + "</abbr></span></div>";
			//var daystr = '' + y + '-' + m + '-' + day + '' + tA + '';
		//	 title='2014-12-25T03:10:00+03:00'
			if (b.length < maxCommentChars) {
				g += '<div title="' + h + '" class="R_c' + l + '">' + b + "</div>"
			} else {
				b = b.substring(0, maxCommentChars);
				var z = b.lastIndexOf(" ");
				b = b.substring(0, z);
				g += '<div title="' + h + '" class="R_c' + l + '">' + b + "...</div>"
			}
			g += "</li>"
		}
	}
	g += "</ul>";
	$("#AhMeD").html(g);
	spyO_o(".Co_M_X")
};
// ColorBox v1.3.20 - jQuery lightbox plugin
// (c) 2012 Jack Moore - jacklmoore.com
// License: http://www.opensource.org/licenses/mit-license.php
(function(e, t, n) {
	function G(n, r, i) {
		var o = t.createElement(n);
		return r && (o.id = s + r), i && (o.style.cssText = i), e(o)
	}
	function Y(e) {
		var t = T.length,
			n = (U + e) % t;
		return n < 0 ? t + n : n
	}
	function Z(e, t) {
		return Math.round((/%/.test(e) ? (t === "x" ? N.width() : N.height()) / 100 : 1) * parseInt(e, 10))
	}
	function et(e) {
		return B.photo || /\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i.test(e)
	}
	function tt() {
		var t, n = e.data(R, i);
		n == null ? (B = e.extend({}, r), console && console.log && console.log("Error: cboxElement missing settings object")) : B = e.extend({}, n);
		for (t in B) e.isFunction(B[t]) && t.slice(0, 2) !== "on" && (B[t] = B[t].call(R));
		B.rel = B.rel || R.rel || "nofollow", B.href = B.href || e(R).attr("href"), B.title = B.title || R.title, typeof B.href == "string" && (B.href = e.trim(B.href))
	}
	function nt(t, n) {
		e.event.trigger(t), n && n.call(R)
	}
	function rt() {
		var e, t = s + "Slideshow_",
			n = "click." + s,
			r, i, o;
		B.slideshow && T[1] ? (r = function() {
			M.text(B.slideshowStop).unbind(n).bind(f, function() {
				if (B.loop || T[U + 1]) e = setTimeout(J.next, B.slideshowSpeed)
			}).bind(a, function() {
				clearTimeout(e)
			}).one(n + " " + l, i), g.removeClass(t + "off").addClass(t + "on"), e = setTimeout(J.next, B.slideshowSpeed)
		}, i = function() {
			clearTimeout(e), M.text(B.slideshowStart).unbind([f, a, l, n].join(" ")).one(n, function() {
				J.next(), r()
			}), g.removeClass(t + "on").addClass(t + "off")
		}, B.slideshowAuto ? r() : i()) : g.removeClass(t + "off " + t + "on")
	}
	function it(t) {
		V || (R = t, tt(), T = e(R), U = 0, B.rel !== "nofollow" && (T = e("." + o).filter(function() {
			var t = e.data(this, i),
				n;
			return t && (n = t.rel || this.rel), n === B.rel
		}), U = T.index(R), U === -1 && (T = T.add(R), U = T.length - 1)), W || (W = X = !0, g.show(), B.returnFocus && e(R).blur().one(c, function() {
			e(this).focus()
		}), m.css({
			opacity: +B.opacity,
			cursor: B.overlayClose ? "pointer" : "auto"
		}).show(), B.w = Z(B.initialWidth, "x"), B.h = Z(B.initialHeight, "y"), J.position(), d && N.bind("resize." + v + " scroll." + v, function() {
			m.css({
				width: N.width(),
				height: N.height(),
				top: N.scrollTop(),
				left: N.scrollLeft()
			})
		}).trigger("resize." + v), nt(u, B.onOpen), H.add(A).hide(), P.html(B.close).show()), J.load(!0))
	}
	function st() {
		!g && t.body && (Q = !1, N = e(n), g = G(K).attr({
			id: i,
			"class": p ? s + (d ? "IE6" : "IE") : ""
		}).hide(), m = G(K, "Overlay", d ? "position:absolute" : "").hide(), y = G(K, "Wrapper"), b = G(K, "Content").append(C = G(K, "LoadedContent", "width:0; height:0; overflow:hidden"), L = G(K, "LoadingOverlay").add(G(K, "LoadingGraphic")), A = G(K, "Title"), O = G(K, "Current"), _ = G(K, "Next"), D = G(K, "Previous"), M = G(K, "Slideshow").bind(u, rt), P = G(K, "Close")), y.append(G(K).append(G(K, "TopLeft"), w = G(K, "TopCenter"), G(K, "TopRight")), G(K, !1, "clear:left").append(E = G(K, "MiddleLeft"), b, S = G(K, "MiddleRight")), G(K, !1, "clear:left").append(G(K, "BottomLeft"), x = G(K, "BottomCenter"), G(K, "BottomRight"))).find("div div").css({
			"float": "left"
		}), k = G(K, !1, "position:absolute; width:9999px; visibility:hidden; display:none"), H = _.add(D).add(O).add(M), e(t.body).append(m, g.append(y, k)))
	}
	function ot() {
		return g ? (Q || (Q = !0, j = w.height() + x.height() + b.outerHeight(!0) - b.height(), F = E.width() + S.width() + b.outerWidth(!0) - b.width(), I = C.outerHeight(!0), q = C.outerWidth(!0), g.css({
			"padding-bottom": j,
			"padding-right": F
		}), _.click(function() {
			J.next()
		}), D.click(function() {
			J.prev()
		}), P.click(function() {
			J.close()
		}), m.click(function() {
			B.overlayClose && J.close()
		}), e(t).bind("keydown." + s, function(e) {
			var t = e.keyCode;
			W && B.escKey && t === 27 && (e.preventDefault(), J.close()), W && B.arrowKey && T[1] && (t === 37 ? (e.preventDefault(), D.click()) : t === 39 && (e.preventDefault(), _.click()))
		}), e("." + o, t).live("click", function(e) {
			e.which > 1 || e.shiftKey || e.altKey || e.metaKey || (e.preventDefault(), it(this))
		})), !0) : !1
	}
	var r = {
		transition: "elastic",
		speed: 300,
		width: !1,
		initialWidth: "600",
		innerWidth: !1,
		maxWidth: !1,
		height: !1,
		initialHeight: "450",
		innerHeight: !1,
		maxHeight: !1,
		scalePhotos: !0,
		scrolling: !0,
		inline: !1,
		html: !1,
		iframe: !1,
		fastIframe: !0,
		photo: !1,
		href: !1,
		title: !1,
		rel: !1,
		opacity: .9,
		preloading: !0,
		current: "الصورة {current} من {total}",
		previous: "<span  class='icon-chevron-left' title='صوره سابقة'></span>",
		next: "<span  class='icon-chevron-right' title='الصورة التاليه'></span>",
		close: "<span  class='Exit' title='خروج'>X</span>",
		xhrError: "This content failed to load.",
		imgError: "This image failed to load.",
		open: !1,
		returnFocus: !0,
		reposition: !0,
		loop: !0,
		slideshow: !1,
		slideshowAuto: !0,
		slideshowSpeed: 2500,
		slideshowStart: "start slideshow",
		slideshowStop: "stop slideshow",
		onOpen: !1,
		onLoad: !1,
		onComplete: !1,
		onCleanup: !1,
		onClosed: !1,
		overlayClose: !0,
		escKey: !0,
		arrowKey: !0,
		top: !1,
		bottom: !1,
		left: !1,
		right: !1,
		fixed: !1,
		data: undefined
	}, i = "colorbox",
		s = "cbox",
		o = s + "Element",
		u = s + "_open",
		a = s + "_load",
		f = s + "_complete",
		l = s + "_cleanup",
		c = s + "_closed",
		h = s + "_purge",
		p = !e.support.opacity && !e.support.style,
		d = p && !n.XMLHttpRequest,
		v = s + "_IE6",
		m, g, y, b, w, E, S, x, T, N, C, k, L, A, O, M, _, D, P, H, B, j, F, I, q, R, U, z, W, X, V, $, J, K = "div",
		Q;
	if (e.colorbox) return;
	e(st), J = e.fn[i] = e[i] = function(t, n) {
		var s = this;
		t = t || {}, st();
		if (ot()) {
			if (!s[0]) {
				if (s.selector) return s;
				s = e("<a/>"), t.open = !0
			}
			n && (t.onComplete = n), s.each(function() {
				e.data(this, i, e.extend({}, e.data(this, i) || r, t))
			}).addClass(o), (e.isFunction(t.open) && t.open.call(s) || t.open) && it(s[0])
		}
		return s
	}, J.position = function(e, t) {
		function f(e) {
			w[0].style.width = x[0].style.width = b[0].style.width = e.style.width, b[0].style.height = E[0].style.height = S[0].style.height = e.style.height
		}
		var n, r = 0,
			i = 0,
			o = g.offset(),
			u, a;
		N.unbind("resize." + s), g.css({
			top: -9e4,
			left: -9e4
		}), u = N.scrollTop(), a = N.scrollLeft(), B.fixed && !d ? (o.top -= u, o.left -= a, g.css({
			position: "fixed"
		})) : (r = u, i = a, g.css({
			position: "absolute"
		})), B.right !== !1 ? i += Math.max(N.width() - B.w - q - F - Z(B.right, "x"), 0) : B.left !== !1 ? i += Z(B.left, "x") : i += Math.round(Math.max(N.width() - B.w - q - F, 0) / 2), B.bottom !== !1 ? r += Math.max(N.height() - B.h - I - j - Z(B.bottom, "y"), 0) : B.top !== !1 ? r += Z(B.top, "y") : r += Math.round(Math.max(N.height() - B.h - I - j, 0) / 2), g.css({
			top: o.top,
			left: o.left
		}), e = g.width() === B.w + q && g.height() === B.h + I ? 0 : e || 0, y[0].style.width = y[0].style.height = "9999px", n = {
			width: B.w + q,
			height: B.h + I,
			top: r,
			left: i
		}, e === 0 && g.css(n), g.dequeue().animate(n, {
			duration: e,
			complete: function() {
				f(this), X = !1, y[0].style.width = B.w + q + F + "px", y[0].style.height = B.h + I + j + "px", B.reposition && setTimeout(function() {
					N.bind("resize." + s, J.position)
				}, 1), t && t()
			},
			step: function() {
				f(this)
			}
		})
	}, J.resize = function(e) {
		W && (e = e || {}, e.width && (B.w = Z(e.width, "x") - q - F), e.innerWidth && (B.w = Z(e.innerWidth, "x")), C.css({
			width: B.w
		}), e.height && (B.h = Z(e.height, "y") - I - j), e.innerHeight && (B.h = Z(e.innerHeight, "y")), !e.innerHeight && !e.height && (C.css({
			height: "auto"
		}), B.h = C.height()), C.css({
			height: B.h
		}), J.position(B.transition === "none" ? 0 : B.speed))
	}, J.prep = function(t) {
		function o() {
			return B.w = B.w || C.width(), B.w = B.mw && B.mw < B.w ? B.mw : B.w, B.w
		}
		function u() {
			return B.h = B.h || C.height(), B.h = B.mh && B.mh < B.h ? B.mh : B.h, B.h
		}
		if (!W) return;
		var n, r = B.transition === "none" ? 0 : B.speed;
		C.remove(), C = G(K, "LoadedContent").append(t), C.hide().appendTo(k.show()).css({
			width: o(),
			overflow: B.scrolling ? "auto" : "hidden"
		}).css({
			height: u()
		}).prependTo(b), k.hide(), e(z).css({
			"float": "none"
		}), d && e("select").not(g.find("select")).filter(function() {
			return this.style.visibility !== "hidden"
		}).css({
			visibility: "hidden"
		}).one(l, function() {
			this.style.visibility = "inherit"
		}), n = function() {
			function y() {
				p && g[0].style.removeAttribute("filter")
			}
			var t, n, o = T.length,
				u, a = "frameBorder",
				l = "allowTransparency",
				c, d, v, m;
			if (!W) return;
			c = function() {
				clearTimeout($), L.hide(), nt(f, B.onComplete)
			}, p && z && C.fadeIn(100), A.html(B.title).add(C).show();
			if (o > 1) {
				typeof B.current == "string" && O.html(B.current.replace("{current}", U + 1).replace("{total}", o)).show(), _[B.loop || U < o - 1 ? "show" : "hide"]().html(B.next), D[B.loop || U ? "show" : "hide"]().html(B.previous), B.slideshow && M.show();
				if (B.preloading) {
					t = [Y(-1), Y(1)];
					while (n = T[t.pop()]) m = e.data(n, i), m && m.href ? (d = m.href, e.isFunction(d) && (d = d.call(n))) : d = n.href, et(d) && (v = new Image, v.src = d)
				}
			} else H.hide();
			B.iframe ? (u = G("iframe")[0], a in u && (u[a] = 0), l in u && (u[l] = "true"), u.name = s + +(new Date), B.fastIframe ? c() : e(u).one("load", c), u.src = B.href, B.scrolling || (u.scrolling = "no"), e(u).addClass(s + "Iframe").appendTo(C).one(h, function() {
				u.src = "//about:blank"
			})) : c(), B.transition === "fade" ? g.fadeTo(r, 1, y) : y()
		}, B.transition === "fade" ? g.fadeTo(r, 0, function() {
			J.position(0, n)
		}) : J.position(r, n)
	}, J.load = function(t) {
		var n, r, i = J.prep;
		X = !0, z = !1, R = T[U], t || tt(), nt(h), nt(a, B.onLoad), B.h = B.height ? Z(B.height, "y") - I - j : B.innerHeight && Z(B.innerHeight, "y"), B.w = B.width ? Z(B.width, "x") - q - F : B.innerWidth && Z(B.innerWidth, "x"), B.mw = B.w, B.mh = B.h, B.maxWidth && (B.mw = Z(B.maxWidth, "x") - q - F, B.mw = B.w && B.w < B.mw ? B.w : B.mw), B.maxHeight && (B.mh = Z(B.maxHeight, "y") - I - j, B.mh = B.h && B.h < B.mh ? B.h : B.mh), n = B.href, $ = setTimeout(function() {
			L.show()
		}, 100), B.inline ? (G(K).hide().insertBefore(e(n)[0]).one(h, function() {
			e(this).replaceWith(C.children())
		}), i(e(n))) : B.iframe ? i(" ") : B.html ? i(B.html) : et(n) ? (e(z = new Image).addClass(s + "Photo").error(function() {
			B.title = !1, i(G(K, "Error").html(B.imgError))
		}).load(function() {
			var e;
			z.onload = null, B.scalePhotos && (r = function() {
				z.height -= z.height * e, z.width -= z.width * e
			}, B.mw && z.width > B.mw && (e = (z.width - B.mw) / z.width, r()), B.mh && z.height > B.mh && (e = (z.height - B.mh) / z.height, r())), B.h && (z.style.marginTop = Math.max(B.h - z.height, 0) / 2 + "px"), T[1] && (B.loop || T[U + 1]) && (z.style.cursor = "pointer", z.onclick = function() {
				J.next()
			}), p && (z.style.msInterpolationMode = "bicubic"), setTimeout(function() {
				i(z)
			}, 1)
		}), setTimeout(function() {
			z.src = n
		}, 1)) : n && k.load(n, B.data, function(t, n, r) {
			i(n === "error" ? G(K, "Error").html(B.xhrError) : e(this).contents())
		})
	}, J.next = function() {
		!X && T[1] && (B.loop || T[U + 1]) && (U = Y(1), J.load())
	}, J.prev = function() {
		!X && T[1] && (B.loop || U) && (U = Y(-1), J.load())
	}, J.close = function() {
		W && !V && (V = !0, W = !1, nt(l, B.onCleanup), N.unbind("." + s + " ." + v), m.fadeTo(200, 0), g.stop().fadeTo(300, 0, function() {
			g.add(m).css({
				opacity: 1,
				cursor: "auto"
			}).hide(), nt(h), C.remove(), setTimeout(function() {
				V = !1, nt(c, B.onClosed)
			}, 1)
		}))
	}, J.remove = function() {
		e([]).add(g).add(m).remove(), g = null, e("." + o).removeData(i).removeClass(o).die()
	}, J.element = function() {
		return e(R)
	}, J.settings = r
})(jQuery, document, this);
/* Search*/
var searchFormConfig = {
	summaryPost: true,
	resultThumbnail: true,
	fallbackThumb: "http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s1600/grey.gif",
	thumbSize: 150,
	summaryLength: 100
};
(function(c) {
	var a = c("#ajax-search-form"),
		d = a.find(":text");
	config = searchFormConfig;
	a.append('<div id="Search"></div>');
	var b = c("#Search");
	a.on("submit", function() {
		var e = d.val();
		b.slideDown(600, "easeOutBounce").html("... جاري التحميل ");
		c.ajax({
			url: "http://a5t9ar.blogspot.com/feeds/posts/summary?alt=json-in-script&q=" + e + "&max-results=9999",
			type: "get",
			dataType: "jsonp",
			success: function(q) {
				var p = q.feed.entry,
					m, l, o, n, g = "";
				if (p !== undefined) {
					g = "<h4>نتيجة البحث عنْ .. &quot;" + e + "&quot;</h4>";
					g += '<a class="close" href="/">&times;</a><ul class="Co_M_X">';
					for (var k = 0; k < p.length; k++) {
						var f = new RegExp(e, "ig"),
							o = p[k].title.$t.replace(f, "<mark>" + e + "</mark>");
						for (var h = 0; h < p[k].link.length; h++) {
							if (p[k].link[h].rel == "alternate") {
								n = p[k].link[h].href
							}
						}
						if (config.summaryPost === true) {
							if ("content" in p[k]) {
								m = p[k].content.$t
							} else {
								if ("summary" in p[k]) {
									m = p[k].summary.$t
								} else {
									m = ""
								}
							}
						}
						if (config.resultThumbnail === true) {
							if ("media$thumbnail" in p[k]) {
								l = p[k].media$thumbnail.url.replace(/\/s[0-9]+\-c/g, "/s" + config.thumbSize + "-c")
							} else {
								l = config.fallbackThumb
							}
						}
						m = m.replace(/<\S[^>]*>/g, "");
						if (m.length > config.summaryLength) {
							m = m.substring(0, config.summaryLength) + "..."
						}
						m = m.replace(f, "<mark>" + e + "</mark>");
						g += '<li class="r_C"><div class="R_C_"><a  href="' + n + '" target="_blank"><img src="' + l + '" alt="" /></div><div class="R_C" ><h4>' + o + "</h4></a></div><p>" + m + "</p></li>"
					}
					g += "</ul>";
					b.html(g)
				} else {
					b.html('<a class="close" href="/">&times;</a><strong>!! للآسف لا يوجد </strong>')
				}
			},
			error: function() {
				b.html('<a class="close" href="/">&times;</a><strong>Error loading feed.</strong>')
			}
		});
		return false
	});
	a.on("click", ".close", function() {
		b.slideUp(800, "easeInExpo");
		return false
	})
})(jQuery);

/* Lazy Load - jQuery plugin for lazy loading images Copyright (c) 2007-2012 Mika Tuupola
 * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
 * Project home: http://www.appelsiini.net/projects/lazyload
 */ (function(a) {
	a.fn.lazyload = function(b) {
		var c = {
			threshold: 0,
			failurelimit: 0,
			event: "scroll",
			effect: "show",
			container: window
		};
		if (b) {
			a.extend(c, b)
		}
		var d = this;
		if ("scroll" == c.event) {
			a(c.container).bind("scroll", function(g) {
				var e = 0;
				d.each(function() {
					if (a.abovethetop(this, c) || a.leftofbegin(this, c)) {} else {
						if (!a.belowthefold(this, c) && !a.rightoffold(this, c)) {
							a(this).trigger("appear")
						} else {
							if (e++ > c.failurelimit) {
								return false
							}
						}
					}
				});
				var f = a.grep(d, function(h) {
					return !h.loaded
				});
				d = a(f)
			})
		}
		this.each(function() {
			var e = this;
			if (undefined == a(e).attr("original")) {
				a(e).attr("original", a(e).attr("src"))
			}
			if ("scroll" != c.event || undefined == a(e).attr("src") || c.placeholder == a(e).attr("src") || (a.abovethetop(e, c) || a.leftofbegin(e, c) || a.belowthefold(e, c) || a.rightoffold(e, c))) {
				if (c.placeholder) {
					a(e).attr("src", c.placeholder)
				} else {
					a(e).removeAttr("src")
				}
				e.loaded = false
			} else {
				e.loaded = true
			}
			a(e).one("appear", function() {
				if (!this.loaded) {
					a("<img />").bind("load", function() {
						a(e).hide().attr("src", a(e).attr("original"))[c.effect](c.effectspeed);
						e.loaded = true
					}).attr("src", a(e).attr("original"))
				}
			});
			if ("scroll" != c.event) {
				a(e).bind(c.event, function(f) {
					if (!e.loaded) {
						a(e).trigger("appear")
					}
				})
			}
		});
		a(c.container).trigger(c.event);
		return this
	};
	a.belowthefold = function(c, d) {
		if (d.container === undefined || d.container === window) {
			var b = a(window).height() + a(window).scrollTop()
		} else {
			var b = a(d.container).offset().top + a(d.container).height()
		}
		return b <= a(c).offset().top - d.threshold
	};
	a.rightoffold = function(c, d) {
		if (d.container === undefined || d.container === window) {
			var b = a(window).width() + a(window).scrollLeft()
		} else {
			var b = a(d.container).offset().left + a(d.container).width()
		}
		return b <= a(c).offset().left - d.threshold
	};
	a.abovethetop = function(c, d) {
		if (d.container === undefined || d.container === window) {
			var b = a(window).scrollTop()
		} else {
			var b = a(d.container).offset().top
		}
		return b >= a(c).offset().top + d.threshold + a(c).height()
	};
	a.leftofbegin = function(c, d) {
		if (d.container === undefined || d.container === window) {
			var b = a(window).scrollLeft()
		} else {
			var b = a(d.container).offset().left
		}
		return b >= a(c).offset().left + d.threshold + a(c).width()
	};
	a.extend(a.expr[":"], {
		"below-the-fold": "$.belowthefold(a, {threshold : 0, container: window})",
		"above-the-fold": "!$.belowthefold(a, {threshold : 0, container: window})",
		"right-of-fold": "$.rightoffold(a, {threshold : 0, container: window})",
		"left-of-fold": "!$.rightoffold(a, {threshold : 0, container: window})"
	})
})(jQuery);
$(function() {
	$(".post img, .item-thumbnail img").lazyload({
		placeholder: "http://2.bp.blogspot.com/-sJ-tZahntLI/T9coeqmdqMI/AAAAAAAADUQ/ztxIT1Fht4g/s1600/grey.png",
		effect: "fadeIn",
		threshold: 500
	})
});

/* ?  Related Posts Widget for Google Blogger v2.0
?  Blog : http://www.moretechtips.net
?  Project: http://code.google.com/p/blogger-related-posts
?  Copyright 2009 [Mike@moretechtips.net] 
?  Licensed under the Apache License, Version 2.0 
?  (the "License"); you may not use this file except in compliance with the License. 
?  You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
*/
(function(c) {
	c.fn.relatedPostsWidget = function(s) {
		if (!this.size()) {
			return this
		}
		s = c.extend({}, c.fn.relatedPostsWidget.defaults, s);
		return this.each(function() {
			var k = c(this),
				z = 0,
				g = null,
				p = null,
				t = 0,
				q = 0,
				l = -1,
				n = -1,
				u = -1,
				r = null,
				v = 0,
				w = null,
				A = "",
				b = s,
				F = function() {
					if (!((l + 1) * b.show_n >= q && !b.animate_loop)) {
						if (!v) {
							c("li", g).eq(n).fadeOut(b.exit_time, B);
							b.show_n > 1 && c("li", g).slice(n + 1, u).fadeOut(b.exit_time)
						}
					}
				}, B = function() {
					if (g.parent().size()) {
						l++;
						if (l * b.show_n >= q) {
							l = 0
						}
						n = l * b.show_n;
						u = (l + 1) * b.show_n;
						c("li", g).eq(n).animate(r, b.enter_time, "linear", C);
						b.show_n > 1 && c("li", g).slice(n + 1, u).animate(r, b.enter_time)
					}
				}, C = function() {
					w && clearTimeout(w);
					w = setTimeout(F, b.stay_time)
				}, G = function() {
					r = {};
					r[b.animate] = "show";
					g.bind("mouseenter", function() {
						v = 1
					}).bind("mouseleave", function() {
						v = 0;
						C()
					});
					B()
				}, x = function() {
					if (!(t || !g)) {
						b.loading_class && g.removeClass(b.loading_class);
						b.max_posts && b.tags.length && c("li:gt(" + (b.max_posts - 1) + ")", g).remove();
						q = c("li", g).size();
						b.tags.length && b.timeout && b.max_posts && c("img", g).each(function() {
							var d = c(this);
							d.attr("rel") && d.attr("src", d.attr("rel"))
						});
						if (b.show_n == 0) {
							c("li", g).show()
						} else {
							q && G()
						}
						t = 1
					}
				}, E = function(d) {
					if (!t) {
						z++;
						if (d.feed.entry) {
							if (!g) {
								k.html("");
								if (b.tags.length == 0) {
									b.recent_title && c("<h4>" + b.recent_title + "</h4>").appendTo(k)
								} else {
									b.related_title && c("<h4>" + b.related_title + "</h4>").appendTo(k)
								}
								g = c('<ul class="rpw ' + b.loading_class + '"></ul>').appendTo(k)
							}
							for (var i = 0, o = d.feed.entry.length; i < o; i++) {
								var e = d.feed.entry[i],
									h;
								a: {
									var f = 0;
									for (h = e.link.length; f < h; f++) {
										if (e.link[f].rel == "alternate") {
											h = e.link[f].href;
											break a
										}
									}
									h = ""
								}
								if ("content" in e) {
									var cnt = e.content.$t
								} else {
									if ("summary" in e) {
										var cnt = e.summary.$t
									} else {
										var cnt = ""
									}
								}
								var re = /<\S[^>]*>/g;
								var cnt = cnt.replace(re, "");
								if (cnt.length > b.summary) {
									cnt = cnt.substring(0, b.summary) + "..."
								}
								f = e.title.$t;
								e = e.media$thumbnail ? e.media$thumbnail.url : b.thumb_default;
								if (h != A || b.tags.length == 0) {
									a: {
										var j = h,
											m = f,
											H = e;
										if (b.tags.length > 0) {
											e = c("li", g);
											f = 0;
											for (var I = e.length; f < I; f++) {
												var y = c("a", e.eq(f));
												h = D(y);
												if (y.attr("href") == j) {
													j = y;
													m = ++h;
													j.attr("score", m);
													b.post_score_class && j.attr("class", b.post_score_class + m);
													for (j = f - 1; j >= 0; j--) {
														m = c("a", e.eq(j));
														if (D(m) > h) {
															f - j > 1 && e.eq(j).after(e.eq(f));
															break a
														}
													}
													f > 0 && e.eq(0).before(e.eq(f));
													break a
												}
											}
										}
										e = j;
										f = m;
										h = H;
										if (b.thumb_size != "s72-c") {
											h = h.replace("/s72-c/", "/" + b.thumb_size + "/")
										}
										j = b.tags.length && b.timeout && b.max_posts ? "rel" : "src";
										g.append('<li style="display:none"><a title="' + f + '" href="' + e + '">' + (b.thumbs && h ? "<span><img " + j + '="' + h + '" title="' + (b.titles ? "" : f) + '" border="0"/></span>' : "") + (b.titles ? "<strong>" + f + "</strong>" : "") + "</a><p>" + cnt + "</p></li>")
									}
								}
							}
						}
						if (z >= b.tags.length) {
							p && clearTimeout(p);
							x()
						}
					}
				}, D = function(d) {
					d = parseInt(d.attr("score"));
					return d > 0 ? d : 1
				}, J = function() {
					if (!b.tags) {
						b.tags = [];
						c('a[rel="tag"]:lt(' + b.max_tags + ")").each(function() {
							var e = c.trim(c(this).text().replace(/\n/g, ""));
							if (c.inArray(e, b.tags) == -1) {
								b.tags[b.tags.length] = e
							}
						})
					}
					var d = b.blog_url + "/feeds/posts/summary/";
					if (b.tags.length == 0) {
						if (b.timeout) {
							p = setTimeout(x, b.timeout)
						}
						c.ajax({
							url: d,
							data: {
								"max-results": b.max_posts,
								alt: "json-in-script"
							},
							success: E,
							dataType: "jsonp",
							cache: true
						})
					} else {
						if (b.timeout) {
							p = setTimeout(x, b.timeout * b.tags.length)
						}
						for (var i = 0, o = b.tags.length; i < o; i++) {
							c.ajax({
								url: d,
								data: {
									category: b.tags[i],
									"max-results": b.posts_per_tag,
									alt: "json-in-script"
								},
								success: E,
								dataType: "jsonp",
								cache: true
							})
						}
					}
				};
			(function() {
				var d = k.attr("data-options");
				if (!d) {
					var i = k.html().replace(/\n|\r\n/g, "");
					if (i) {
						if ((i = i.match(/<!--\s*(\{.+\});?\s*--\>/)) && i.length == 2) {
							d = i[1]
						}
					}
				}
				if (d) {
					if (d.indexOf("{") < 0) {
						d = "{" + d + "}"
					}
					try {
						b = eval("(" + d + ")")
					} catch (o) {
						a.html('<b style="color:red">' + o + "</b>");
						return null
					}
					b = c.extend({}, c.fn.relatedPostsWidget.defaults, b)
				}
				if (b.post_page_only ? location.pathname.match(/^\/\d{4}\/\d\d\/[\w\-\_]+\.html/) : true) {
					A = location.protocol + "//" + location.host + location.pathname + (b.url_querystring ? location.search : "");
					J()
				}
			})()
		})
	};
	c.fn.relatedPostsWidget.defaults = {
		blog_url: "",
		max_posts: 5,
		summary: 0,
		max_tags: 5,
		posts_per_tag: 5,
		tags: false,
		loading_class: "rpw-loading",
		related_title: "Related Posts",
		recent_title: "Recent Posts",
		post_score_class: "",
		post_page_only: 0,
		thumb_default: "",
		thumb_size: "s72-c",
		thumbs: 1,
		titles: 1,
		url_querystring: 0,
		timeout: 1500,
		show_n: 0,
		stay_time: 5000,
		enter_time: 200,
		exit_time: 200,
		animate: "opacity",
		animate_loop: 1
	}
})(jQuery);

/*emoticon*/

/*
Syntax highlighting with language autodetection.
http://softwaremaniacs.org/soft/highlight/
*/
function autoSelect(a) {
	var b, range;
	if (window.getSelection) {
		b = window.getSelection();
		range = document.createRange();
		range.selectNodeContents(a);
		b.removeAllRanges();
		b.addRange(range)
	} else if (document.selection) {
		b = document.selection.createRange().text;
		range = document.body.createTextRange();
		range.moveToElementText(a);
		range.select()
	}
}
function makeNumber() {
	var a = document.getElementsByTagName('pre'),
		pl = a.length;
	for (var i = 0; i < pl; i++) {
		if (/(^| )numbered( |$)/.test(a[i].className)) {
			a[i].innerHTML = '<span class="line-number"></span>' + a[i].innerHTML + '<span class="cl"></span>'
		}
	}
	for (var j = 0; j < pl; j++) {
		if (a[j].getElementsByTagName('span')[0] && a[j].getElementsByTagName('span')[0].className == 'line-number') {
			var b = a[j].getElementsByTagName('code')[0].innerHTML.split(/\n/).length,
				line = a[j].getElementsByTagName('span')[0];
			for (var k = 0; k < b; k++) {
				line.innerHTML += '<span id="line-' + (j + 1) + '-' + (k + 1) + '"><em>line-' + (j + 1) + '-' + (k + 1) + '</em><a href="#line-' + (j + 1) + '-' + (k + 1) + '">' + (k + 1) + '</a></span>'
			}
		}
	}
	var code = document.getElementsByTagName('code'),
		clen = code.length;
	for (var i = 0; i < clen; i++) {
		code[i].ondblclick = function() {
			autoSelect(this);
			if (document.getElementById('tt-search')) {
				document.getElementById('tt-search').style.display = "none"
			}
		}
	}
}

var hljs = new function() {
		function m(p) {
			return p.replace(/&/gm, "&amp;").replace(/</gm, "&lt;")
		}
		function c(r, q, p) {
			return RegExp(q, "m" + (r.cI ? "i" : "") + (p ? "g" : ""))
		}
		function j(r) {
			for (var p = 0; p < r.childNodes.length; p++) {
				var q = r.childNodes[p];
				if (q.nodeName == "CODE" || q.nodeName == "SPAN") {
					return q
				}
				if (!(q.nodeType == 3 && q.nodeValue.match(/\s+/))) {
					break
				}
			}
		}
		function g(t, s) {
			var r = "";
			for (var q = 0; q < t.childNodes.length; q++) {
				if (t.childNodes[q].nodeType == 3) {
					var p = t.childNodes[q].nodeValue;
					if (s) {
						p = p.replace(/\n/g, "")
					}
					r += p
				} else {
					if (t.childNodes[q].nodeName == "BR") {
						r += "\n"
					} else {
						r += g(t.childNodes[q])
					}
				}
			}
			if (/MSIE [678]/.test(navigator.userAgent)) {
				r = r.replace(/\r/g, "\n")
			}
			return r
		}
		function a(s) {
			var q = s.className.split(/\s+/);
			q = q.concat(s.parentNode.className.split(/\s+/));
			for (var p = 0; p < q.length; p++) {
				var r = q[p].replace(/^language-/, "");
				if (d[r] || r == "no-highlight") {
					return r
				}
			}
		}
		function b(p) {
			var q = [];
			(function(s, t) {
				for (var r = 0; r < s.childNodes.length; r++) {
					if (s.childNodes[r].nodeType == 3) {
						t += s.childNodes[r].nodeValue.length
					} else {
						if (s.childNodes[r].nodeName == "BR") {
							t += 1
						} else {
							q.push({
								event: "start",
								offset: t,
								node: s.childNodes[r]
							});
							t = arguments.callee(s.childNodes[r], t);
							q.push({
								event: "stop",
								offset: t,
								node: s.childNodes[r]
							})
						}
					}
				}
				return t
			})(p, 0);
			return q
		}
		function l(y, z, x) {
			var r = 0;
			var w = "";
			var t = [];

			function u() {
				if (y.length && z.length) {
					if (y[0].offset != z[0].offset) {
						return (y[0].offset < z[0].offset) ? y : z
					} else {
						return z[0].event == "start" ? y : z
					}
				} else {
					return y.length ? y : z
				}
			}
			function s(C) {
				var D = "<" + C.nodeName.toLowerCase();
				for (var A = 0; A < C.attributes.length; A++) {
					var B = C.attributes[A];
					D += " " + B.nodeName.toLowerCase();
					if (B.nodeValue != undefined && B.nodeValue != false && B.nodeValue != null) {
						D += '="' + m(B.nodeValue) + '"'
					}
				}
				return D + ">"
			}
			while (y.length || z.length) {
				var v = u().splice(0, 1)[0];
				w += m(x.substr(r, v.offset - r));
				r = v.offset;
				if (v.event == "start") {
					w += s(v.node);
					t.push(v.node)
				} else {
					if (v.event == "stop") {
						var q = t.length;
						do {
							q--;
							var p = t[q];
							w += ("</" + p.nodeName.toLowerCase() + ">")
						} while (p != v.node);
						t.splice(q, 1);
						while (q < t.length) {
							w += s(t[q]);
							q++
						}
					}
				}
			}
			w += x.substr(r);
			return w
		}
		function i() {
			function p(u, t, v) {
				if (u.compiled) {
					return
				}
				if (!v) {
					u.bR = c(t, u.b ? u.b : "\\B|\\b");
					if (!u.e && !u.eW) {
						u.e = "\\B|\\b"
					}
					if (u.e) {
						u.eR = c(t, u.e)
					}
				}
				if (u.i) {
					u.iR = c(t, u.i)
				}
				if (u.r == undefined) {
					u.r = 1
				}
				if (u.k) {
					u.lR = c(t, u.l || hljs.IR, true)
				}
				for (var s in u.k) {
					if (!u.k.hasOwnProperty(s)) {
						continue
					}
					if (u.k[s] instanceof Object) {
						u.kG = u.k
					} else {
						u.kG = {
							keyword: u.k
						}
					}
					break
				}
				if (!u.c) {
					u.c = []
				}
				u.compiled = true;
				for (var r = 0; r < u.c.length; r++) {
					p(u.c[r], t, false)
				}
				if (u.starts) {
					p(u.starts, t, false)
				}
			}
			for (var q in d) {
				if (!d.hasOwnProperty(q)) {
					continue
				}
				p(d[q].dM, d[q], true)
			}
		}
		function e(J, D) {
			if (!i.called) {
				i();
				i.called = true
			}
			function z(r, M) {
				for (var L = 0; L < M.c.length; L++) {
					if (M.c[L].bR.test(r)) {
						return M.c[L]
					}
				}
			}
			function w(L, r) {
				if (C[L].e && C[L].eR.test(r)) {
					return 1
				}
				if (C[L].eW) {
					var M = w(L - 1, r);
					return M ? M + 1 : 0
				}
				return 0
			}
			function x(r, L) {
				return L.iR && L.iR.test(r)
			}
			function A(O, N) {
				var M = [];
				for (var L = 0; L < O.c.length; L++) {
					M.push(O.c[L].b)
				}
				var r = C.length - 1;
				do {
					if (C[r].e) {
						M.push(C[r].e)
					}
					r--
				} while (C[r + 1].eW);
				if (O.i) {
					M.push(O.i)
				}
				return c(N, "(" + M.join("|") + ")", true)
			}
			function s(M, L) {
				var N = C[C.length - 1];
				if (!N.t) {
					N.t = A(N, H)
				}
				N.t.lastIndex = L;
				var r = N.t.exec(M);
				if (r) {
					return [M.substr(L, r.index - L), r[0], false]
				} else {
					return [M.substr(L), "", true]
				}
			}
			function p(O, r) {
				var L = H.cI ? r[0].toLowerCase() : r[0];
				for (var N in O.kG) {
					if (!O.kG.hasOwnProperty(N)) {
						continue
					}
					var M = O.kG[N].hasOwnProperty(L);
					if (M) {
						return [N, M]
					}
				}
				return false
			}
			function F(M, O) {
				if (!O.k) {
					return m(M)
				}
				var N = "";
				var P = 0;
				O.lR.lastIndex = 0;
				var L = O.lR.exec(M);
				while (L) {
					N += m(M.substr(P, L.index - P));
					var r = p(O, L);
					if (r) {
						t += r[1];
						N += '<span class="' + r[0] + '">' + m(L[0]) + "</span>"
					} else {
						N += m(L[0])
					}
					P = O.lR.lastIndex;
					L = O.lR.exec(M)
				}
				N += m(M.substr(P, M.length - P));
				return N
			}
			function K(r, M) {
				if (M.sL && d[M.sL]) {
					var L = e(M.sL, r);
					t += L.keyword_count;
					return L.value
				} else {
					return F(r, M)
				}
			}
			function I(M, r) {
				var L = M.cN ? '<span class="' + M.cN + '">' : "";
				if (M.rB) {
					q += L;
					M.buffer = ""
				} else {
					if (M.eB) {
						q += m(r) + L;
						M.buffer = ""
					} else {
						q += L;
						M.buffer = r
					}
				}
				C.push(M);
				B += M.r
			}
			function E(O, L, Q) {
				var R = C[C.length - 1];
				if (Q) {
					q += K(R.buffer + O, R);
					return false
				}
				var M = z(L, R);
				if (M) {
					q += K(R.buffer + O, R);
					I(M, L);
					return M.rB
				}
				var r = w(C.length - 1, L);
				if (r) {
					var N = R.cN ? "</span>" : "";
					if (R.rE) {
						q += K(R.buffer + O, R) + N
					} else {
						if (R.eE) {
							q += K(R.buffer + O, R) + N + m(L)
						} else {
							q += K(R.buffer + O + L, R) + N
						}
					}
					while (r > 1) {
						N = C[C.length - 2].cN ? "</span>" : "";
						q += N;
						r--;
						C.length--
					}
					var P = C[C.length - 1];
					C.length--;
					C[C.length - 1].buffer = "";
					if (P.starts) {
						I(P.starts, "")
					}
					return R.rE
				}
				if (x(L, R)) {
					throw "Illegal"
				}
			}
			var H = d[J];
			var C = [H.dM];
			var B = 0;
			var t = 0;
			var q = "";
			try {
				var v = 0;
				H.dM.buffer = "";
				do {
					var y = s(D, v);
					var u = E(y[0], y[1], y[2]);
					v += y[0].length;
					if (!u) {
						v += y[1].length
					}
				} while (!y[2]);
				if (C.length > 1) {
					throw "Illegal"
				}
				return {
					r: B,
					keyword_count: t,
					value: q
				}
			} catch (G) {
				if (G == "Illegal") {
					return {
						r: 0,
						keyword_count: 0,
						value: m(D)
					}
				} else {
					throw G
				}
			}
		}
		function f(t) {
			var r = {
				keyword_count: 0,
				r: 0,
				value: m(t)
			};
			var q = r;
			for (var p in d) {
				if (!d.hasOwnProperty(p)) {
					continue
				}
				var s = e(p, t);
				s.language = p;
				if (s.keyword_count + s.r > q.keyword_count + q.r) {
					q = s
				}
				if (s.keyword_count + s.r > r.keyword_count + r.r) {
					q = r;
					r = s
				}
			}
			if (q.language) {
				r.second_best = q
			}
			return r
		}
		function h(r, q, p) {
			if (q) {
				r = r.replace(/^((<[^>]+>|\t)+)/gm, function(t, w, v, u) {
					return w.replace(/\t/g, q)
				})
			}
			if (p) {
				r = r.replace(/\n/g, "<br>")
			}
			return r
		}
		function o(u, x, q) {
			var y = g(u, q);
			var s = a(u);
			if (s == "no-highlight") {
				return
			}
			if (s) {
				var w = e(s, y)
			} else {
				var w = f(y);
				s = w.language
			}
			var p = b(u);
			if (p.length) {
				var r = document.createElement("pre");
				r.innerHTML = w.value;
				w.value = l(p, b(r), y)
			}
			w.value = h(w.value, x, q);
			var t = u.className;
			if (!t.match("(\\s|^)(language-)?" + s + "(\\s|$)")) {
				t = t ? (t + " " + s) : s
			}
			if (/MSIE [678]/.test(navigator.userAgent) && u.tagName == "CODE" && u.parentNode.tagName == "PRE") {
				var r = u.parentNode;
				var v = document.createElement("div");
				v.innerHTML = "<pre><code>" + w.value + "</code></pre>";
				u = v.firstChild.firstChild;
				v.firstChild.cN = r.cN;
				r.parentNode.replaceChild(v.firstChild, r)
			} else {
				u.innerHTML = w.value
			}
			u.className = t;
			u.result = {
				language: s,
				kw: w.keyword_count,
				re: w.r
			};
			if (w.second_best) {
				u.second_best = {
					language: w.second_best.language,
					kw: w.second_best.keyword_count,
					re: w.second_best.r
				}
			}
		}
		function k() {
			if (k.called) {
				return
			}
			k.called = true;
			var r = document.getElementsByTagName("pre");
			for (var p = 0; p < r.length; p++) {
				var q = j(r[p]);
				if (q) {
					o(q, hljs.tabReplace)
				}
			}
			makeNumber()
		}
		function n() {
			if (window.addEventListener) {
				window.addEventListener("DOMContentLoaded", k, false);
				window.addEventListener("load", k, false)
			} else {
				if (window.attachEvent) {
					window.attachEvent("onload", k)
				} else {
					window.onload = k
				}
			}
		}
		var d = {};
		this.LANGUAGES = d;
		this.highlight = e;
		this.highlightAuto = f;
		this.fixMarkup = h;
		this.highlightBlock = o;
		this.initHighlighting = k;
		this.initHighlightingOnLoad = n;
		this.IR = "[a-zA-Z][a-zA-Z0-9_]*";
		this.UIR = "[a-zA-Z_][a-zA-Z0-9_]*";
		this.NR = "\\b\\d+(\\.\\d+)?";
		this.CNR = "\\b(0x[A-Za-z0-9]+|\\d+(\\.\\d+)?)";
		this.RSR = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";
		this.BE = {
			b: "\\\\.",
			r: 0
		};
		this.ASM = {
			cN: "string",
			b: "'",
			e: "'",
			i: "\\n",
			c: [this.BE],
			r: 0
		};
		this.QSM = {
			cN: "string",
			b: '"',
			e: '"',
			i: "\\n",
			c: [this.BE],
			r: 0
		};
		this.CLCM = {
			cN: "comment",
			b: "//",
			e: "$"
		};
		this.CBLCLM = {
			cN: "comment",
			b: "/\\*",
			e: "\\*/"
		};
		this.HCM = {
			cN: "comment",
			b: "#",
			e: "$"
		};
		this.NM = {
			cN: "number",
			b: this.NR,
			r: 0
		};
		this.CNM = {
			cN: "number",
			b: this.CNR,
			r: 0
		};
		this.inherit = function(p, s) {
			var r = {};
			for (var q in p) {
				r[q] = p[q]
			}
			if (s) {
				for (var q in s) {
					r[q] = s[q]
				}
			}
			return r
		}
	}();
hljs.LANGUAGES.javascript = {
	dM: {
		k: {
			keyword: {
				"in": 1,
				"if": 1,
				"for": 1,
				"while": 1,
				"finally": 1,
				"var": 1,
				"new": 1,
				"function": 1,
				"do": 1,
				"return": 1,
				"void": 1,
				"else": 1,
				"break": 1,
				"catch": 1,
				"instanceof": 1,
				"with": 1,
				"throw": 1,
				"case": 1,
				"default": 1,
				"try": 1,
				"this": 1,
				"switch": 1,
				"continue": 1,
				"typeof": 1,
				"delete": 1
			},
			literal: {
				"true": 1,
				"false": 1,
				"null": 1
			}
		},
		c: [hljs.ASM, hljs.QSM, hljs.CLCM, hljs.CBLCLM, hljs.CNM, {
			b: "(" + hljs.RSR + "|case|return|throw)\\s*",
			k: {
				"return": 1,
				"throw": 1,
				"case": 1
			},
			c: [hljs.CLCM, hljs.CBLCLM, {
				cN: "regexp",
				b: "/",
				e: "/[gim]*",
				c: [{
					b: "\\\\/"
				}]
			}],
			r: 0
		}, {
			cN: "function",
			b: "\\bfunction\\b",
			e: "{",
			k: {
				"function": 1
			},
			c: [{
				cN: "title",
				b: "[A-Za-z$_][0-9A-Za-z$_]*"
			}, {
				cN: "params",
				b: "\\(",
				e: "\\)",
				c: [hljs.ASM, hljs.QSM, hljs.CLCM, hljs.CBLCLM]
			}]
		}]
	}
};
hljs.LANGUAGES.css = function() {
	var a = {
		cN: "function",
		b: hljs.IR + "\\(",
		e: "\\)",
		c: [{
			eW: true,
			eE: true,
			c: [hljs.NM, hljs.ASM, hljs.QSM]
		}]
	};
	return {
		cI: true,
		dM: {
			i: "[=/|']",
			c: [hljs.CBLCLM, {
				cN: "id",
				b: "\\#[A-Za-z0-9_-]+"
			}, {
				cN: "class",
				b: "\\.[A-Za-z0-9_-]+",
				r: 0
			}, {
				cN: "attr_selector",
				b: "\\[",
				e: "\\]",
				i: "$"
			}, {
				cN: "pseudo",
				b: ":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"
			}, {
				cN: "at_rule",
				b: "@(font-face|page)",
				l: "[a-z-]+",
				k: {
					"font-face": 1,
					page: 1
				}
			}, {
				cN: "at_rule",
				b: "@",
				e: "[{;]",
				eE: true,
				k: {
					"import": 1,
					page: 1,
					media: 1,
					charset: 1
				},
				c: [a, hljs.ASM, hljs.QSM, hljs.NM]
			}, {
				cN: "tag",
				b: hljs.IR,
				r: 0
			}, {
				cN: "rules",
				b: "{",
				e: "}",
				i: "[^\\s]",
				r: 0,
				c: [hljs.CBLCLM, {
					cN: "rule",
					b: "[^\\s]",
					rB: true,
					e: ";",
					eW: true,
					c: [{
						cN: "attribute",
						b: "[A-Z\\_\\.\\-]+",
						e: ":",
						eE: true,
						i: "[^\\s]",
						starts: {
							cN: "value",
							eW: true,
							eE: true,
							c: [a, hljs.NM, hljs.QSM, hljs.ASM, hljs.CBLCLM, {
								cN: "hexcolor",
								b: "\\#[0-9A-F]+"
							}, {
								cN: "important",
								b: "!important"
							}]
						}
					}]
				}]
			}]
		}
	}
}();
hljs.LANGUAGES.xml = function() {
	var b = "[A-Za-z0-9\\._:-]+";
	var a = {
		eW: true,
		c: [{
			cN: "attribute",
			b: b,
			r: 0
		}, {
			b: '="',
			rB: true,
			e: '"',
			c: [{
				cN: "value",
				b: '"',
				eW: true
			}]
		}, {
			b: "='",
			rB: true,
			e: "'",
			c: [{
				cN: "value",
				b: "'",
				eW: true
			}]
		}, {
			b: "=",
			c: [{
				cN: "value",
				b: "[^\\s/>]+"
			}]
		}]
	};
	return {
		cI: true,
		dM: {
			c: [{
				cN: "pi",
				b: "<\\?",
				e: "\\?>",
				r: 10
			}, {
				cN: "doctype",
				b: "<!DOCTYPE",
				e: ">",
				r: 10,
				c: [{
					b: "\\[",
					e: "\\]"
				}]
			}, {
				cN: "comment",
				b: "<!--",
				e: "-->",
				r: 10
			}, {
				cN: "cdata",
				b: "<\\!\\[CDATA\\[",
				e: "\\]\\]>",
				r: 10
			}, {
				cN: "tag",
				b: "<style",
				e: ">",
				k: {
					title: {
						style: 1
					}
				},
				c: [a],
				starts: {
					cN: "css",
					e: "</style>",
					rE: true,
					sL: "css"
				}
			}, {
				cN: "tag",
				b: "<script",
				e: ">",
				k: {
					title: {
						script: 1
					}
				},
				c: [a],
				starts: {
					cN: "javascript",
					e: "<\/script>",
					rE: true,
					sL: "javascript"
				}
			}, {
				cN: "vbscript",
				b: "<%",
				e: "%>",
				sL: "vbscript"
			}, {
				cN: "tag",
				b: "</?",
				e: "/?>",
				c: [{
					cN: "title",
					b: "[^ />]+"
				},
				a]
			}]
		}
	}
}();
hljs.LANGUAGES.java = {
	dM: {
		k: {
			"false": 1,
			"synchronized": 1,
			"int": 1,
			"abstract": 1,
			"float": 1,
			"private": 1,
			"char": 1,
			"interface": 1,
			"boolean": 1,
			"static": 1,
			"null": 1,
			"if": 1,
			"const": 1,
			"for": 1,
			"true": 1,
			"while": 1,
			"long": 1,
			"throw": 1,
			strictfp: 1,
			"finally": 1,
			"protected": 1,
			"extends": 1,
			"import": 1,
			"native": 1,
			"final": 1,
			"implements": 1,
			"return": 1,
			"void": 1,
			"enum": 1,
			"else": 1,
			"break": 1,
			"transient": 1,
			"new": 1,
			"catch": 1,
			"instanceof": 1,
			"byte": 1,
			"super": 1,
			"class": 1,
			"volatile": 1,
			"case": 1,
			assert: 1,
			"short": 1,
			"package": 1,
			"default": 1,
			"double": 1,
			"public": 1,
			"try": 1,
			"this": 1,
			"switch": 1,
			"continue": 1,
			"throws": 1
		},
		c: [{
			cN: "javadoc",
			b: "/\\*\\*",
			e: "\\*/",
			c: [{
				cN: "javadoctag",
				b: "@[A-Za-z]+"
			}],
			r: 10
		},
		hljs.CLCM, hljs.CBLCLM, hljs.ASM, hljs.QSM, {
			cN: "class",
			b: "(class |interface )",
			e: "{",
			k: {
				"class": 1,
				"interface": 1
			},
			i: ":",
			c: [{
				b: "(implements|extends)",
				k: {
					"extends": 1,
					"implements": 1
				},
				r: 10
			}, {
				cN: "title",
				b: hljs.UIR
			}]
		},
		hljs.CNM, {
			cN: "annotation",
			b: "@[A-Za-z]+"
		}]
	}
};
hljs.LANGUAGES.php = {
	cI: true,
	dM: {
		k: {
			and: 1,
			include_once: 1,
			list: 1,
			"abstract": 1,
			global: 1,
			"private": 1,
			echo: 1,
			"interface": 1,
			as: 1,
			"static": 1,
			endswitch: 1,
			array: 1,
			"null": 1,
			"if": 1,
			endwhile: 1,
			or: 1,
			"const": 1,
			"for": 1,
			endforeach: 1,
			self: 1,
			"var": 1,
			"while": 1,
			isset: 1,
			"public": 1,
			"protected": 1,
			exit: 1,
			foreach: 1,
			"throw": 1,
			elseif: 1,
			"extends": 1,
			include: 1,
			__FILE__: 1,
			empty: 1,
			require_once: 1,
			"function": 1,
			"do": 1,
			xor: 1,
			"return": 1,
			"implements": 1,
			parent: 1,
			clone: 1,
			use: 1,
			__CLASS__: 1,
			__LINE__: 1,
			"else": 1,
			"break": 1,
			print: 1,
			"eval": 1,
			"new": 1,
			"catch": 1,
			__METHOD__: 1,
			"class": 1,
			"case": 1,
			exception: 1,
			php_user_filter: 1,
			"default": 1,
			die: 1,
			require: 1,
			__FUNCTION__: 1,
			enddeclare: 1,
			"final": 1,
			"try": 1,
			"this": 1,
			"switch": 1,
			"continue": 1,
			endfor: 1,
			endif: 1,
			declare: 1,
			unset: 1,
			"true": 1,
			"false": 1,
			namespace: 1
		},
		c: [hljs.CLCM, hljs.HCM, {
			cN: "comment",
			b: "/\\*",
			e: "\\*/",
			c: [{
				cN: "phpdoc",
				b: "\\s@[A-Za-z]+",
				r: 10
			}]
		},
		hljs.CNM, hljs.inherit(hljs.ASM, {
			i: null
		}), hljs.inherit(hljs.QSM, {
			i: null
		}), {
			cN: "variable",
			b: "\\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"
		}, {
			cN: "preprocessor",
			b: "<\\?php",
			r: 10
		}, {
			cN: "preprocessor",
			b: "\\?>"
		}]
	}
};

hljs.tabReplace = '    ';
hljs.initHighlightingOnLoad();


//ahmed
var win = $(window),
    nav = $('.Nav'),

    pos = nav.offset().top,
    sticky = function(){ 
      win.scrollTop() > pos ? nav.addClass('sticky')
      : nav.removeClass('sticky')
    }

win.scroll(sticky);

//sharing
 
//
var trim = function(e) {
        return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "")
    };
var hasClass = function(e, t) {
        return (" " + e.className + " ").indexOf(" " + t + " ") !== -1
    };
var addClass = function(e, t) {
        if (!hasClass(e, t)) {
            e.className = e.className === "" ? t : e.className + " " + t
        }
    };
var removeClass = function(e, t) {
        e.className = trim((" " + e.className + " ").replace(" " + t + " ", " "))
    };
var hasParent = function(e, t) {
        if (e) {
            do {
                if (e.id === t) {
                    return true
                }
                if (e.nodeType === 9) {
                    break
                }
            } while (e = e.parentNode)
        }
        return false
    };
var doc = document.documentElement;
var transform_prop = window.Modernizr.prefixed("transform"),
    transition_prop = window.Modernizr.prefixed("transition"),
    transition_end = function() {
        var e = {
            WebkitTransition: "webkitTransitionEnd",
            MozTransition: "transitionend",
            OTransition: "oTransitionEnd otransitionend",
            msTransition: "MSTransitionEnd",
            transition: "transitionend"
        };
        return e.hasOwnProperty(transition_prop) ? e[transition_prop] : false
    }();
window.App = function() {
    var e = false,
        t = {};
    var n = document.getElementById("inner-wrap"),
        r = false,
        i = "js-nav";
    t.init = function() {
        if (e) {
            return
        }
        e = true;
        var s = function(e) {
                if (e && e.target === n) {
                    document.removeEventListener(transition_end, s, false)
                }
                r = false
            };
        t.closeNav = function() {
            if (r) {
                var e = transition_end && transition_prop ? parseFloat(window.getComputedStyle(n, "")[transition_prop + "Duration"]) : 0;
                if (e > 0) {
                    document.addEventListener(transition_end, s, false)
                } else {
                    s(null)
                }
            }
            removeClass(doc, i)
        };
        t.openNav = function() {
            if (r) {
                return
            }
            addClass(doc, i);
            r = true
        };
        t.toggleNav = function(e) {
            if (r && hasClass(doc, i)) {
                t.closeNav()
            } else {
                t.openNav()
            }
            if (e) {
                e.preventDefault()
            }
        };
        document.getElementById("nav-open-btn").addEventListener("click", t.toggleNav, false);
        document.getElementById("nav-close-btn").addEventListener("click", t.toggleNav, false);
        document.addEventListener("click", function(e) {
            if (r && !hasParent(e.target, "nav")) {
                e.preventDefault();
                t.closeNav()
            }
        }, true);
        addClass(doc, "js-ready")
    };
    return t
}();
if (window.addEventListener) {
    window.addEventListener("DOMContentLoaded", window.App.init, false)
};

function resizeThumb(e, b) {
    var c = document.getElementById(e),
        d = c.getElementsByClassName("post-thumbnail");
    for (var a = 0; a < d.length; a++) {
        d[a].src = d[a].src.replace(/\/s72\-c/, "/w" + b);
        d[a].width = b
    }
}
function resizeThumbClass(el, to) {
    $(el).each(function() {
        $(this).attr({
            'src': $(this).attr('src').replace(/\/s[0-9]+(\-c)?\//, '/' + to + '/').replace('default.jpg', '0.jpg')
        })
    })
}
var ccc1 = $('.post_detail');
var e_s = $('#HTML2');
var ccc2 = $('#tab1');
var ccc0 = $('#tab4');
var cc3 =$('#ddd') ;
var cc4 =$('.carD') ;
ccc0.html(ccc1);
ccc2.html(e_s);
cc4.html(cc3);
var costum1_a = $('#costum-1');
var costum1_b = $('.costum-1');
costum1_a.html(costum1_b.first());
var costum2_a = $('#costum-2');
var costum2_b = $('.costum-2');
costum2_a.html(costum2_b.first());
$("h4.Comment").click(function() {
    $(".comments-container").slideToggle(600, 'easeOutBounce'),
  $(".post-b").slideToggle(800, 'easeInExpo')
});

function add_commas(number) {
    if (number.length > 3) {
        var mod = number.length % 3;
        var output = (mod > 0 ? (number.substring(0, mod)) : '');
        for (i = 0; i < Math.floor(number.length / 3); i++) {
            if ((mod == 0) && (i == 0)) {
                output += number.substring(mod + 3 * i, mod + 3 * i + 3)
            } else {
                output += ',' + number.substring(mod + 3 * i, mod + 3 * i + 3)
            }
        }
        return (output)
    } else {
        return number
    }
}
$.getJSON('https://graph.facebook.com/' + FacebookPage_Id + '?callback=?', function(data) {
    var fb_count = data['likes'].toString();
    fb_count = add_commas(fb_count);
    $('.facebook_count,.facebook_b .count_b').append('<a href="https://www.facebook.com/' + FacebookPage_Id + '" target="_blank"><span class="count">' + fb_count + '</span></a>  ');
    $('.facebook_b .gr_2').append('<a href="https://www.facebook.com/' + FacebookPage_Id + '" target="_blank"><i class="fa fa-google-plus"/></a>  ')
});
$.getJSON('http://cdn.api.twitter.com/1/users/show.json?screen_name=' + Twitter_Id + '&callback=?', function(data) {
    twit_count = data['followers_count'].toString();
    twit_count = add_commas(twit_count);
    $('.twitter_count,.twitter_b .count_b').append('<a href="https://twitter.com/' + Twitter_Id + '/" target="_blank"><span class="count ">' + twit_count + '</span></a> ');
    $('.twitter_b .gr_2').append('<a href="https://twitter.com/' + Twitter_Id + '/" target="_blank"><i class="fa fa-facebook"/></a>  ')
});
$.getJSON('https://www.googleapis.com/plus/v1/people/' + Google_ID + '?key=AIzaSyB1_d2f1zt80_Qtwa1ov8RP1J-FO9nbjg8 ', function(data) {
    like_countx = data['plusOneCount'].toString();
    $('.google_count,.google_b .count_b').prepend('<a href="https://plus.google.com/u/0/' + Google_ID + '/posts" target="_blank"><span class="count">' + like_countx + ' </span></a>');
    $('.google_b .gr_2').append('<a href="https://plus.google.com/u/0/' + Google_ID + '/posts" target="_blank"><i class="fa fa-google-plus"/></a>  ')
});
$('.comments-container .comment-avatar img').css('display','block');
$('#Stats1_content').css('display','block');
$.getJSON('http://api.sharedcount.com/?url=' + Url, function(data) {
    var Twitter_count = data['Twitter'].toString();
    var gplus_count = data['GooglePlusOne'].toString();
    var like_count = data['Facebook']['total_count'].toString();
    var share_count = data['Facebook']['share_count'].toString();
    $('.counts.share.google').append('<a href="https://plus.google.com/share?url=' + Url + '" target="_blank"><span class="titles"><span>Google +</span></span><span class="count">' + gplus_count + '</span></a>');
    $('.counts.share.facebook').append('<a href="http://www.facebook.com/sharer.php?u=' + Url + '" target="_blank"><span class="titles"><span>Facebook</span></span><span class="count">' + share_count + '</span></a>');
    $('.counts.share.twitter').append('<a href="http://twitter.com/share?url=' + Url + '" target="_blank" ><span class="titles"><span>Twitter</span></span><span class="count">' + Twitter_count + '</span></a>')
});
var newDate = new Date();
var Year = newDate.getFullYear();
$(".copyright")["append"](
	"<footer><div style=\"float: left; width: 100%;text-align: center; font-size: 12px; line-height: 1.5em; font-weight: 900; text-transform: uppercase; padding: 40px 0 40px 0;display:block!Important; position: relative!Important;visibility: visible!Important; z-index: 9999!Important;opacity:1.0!Important;text-transform: uppercase;color:rgba(255,255,255,0.6)\"><div style=\"padding:0 20px;display:block;\">Copyright " +
	Year + " <a href=\"" + HomePageUrl + "\"  style=\"color:rgba(255,255,255,0.6)\">" + HomePageTitle +
	"</a>. All Rights Reserved<br/>Template by : <a href=\"http://maestro-al.blogspot.com\" target=\"_blank\"  title=\"O_O\" style=\"color:rgba(255,255,255,0.6)\">MAESTRO_ALBlOG</a></div></div></footer>"
)["addClass"]("AhMeD_ALHarazi");
$('.Comment').click(function() {
$('html, body').animate({scrollTop: $('.RoW').offset().top -100 }, 'slow');
});


function tabss() {
    function resetTabs() {
        $("#content > div").hide();
        $("#tabs span").attr("id", "")
    }
    var myUrl = window.location.href;
    var myUrlTab = myUrl.substring(myUrl.indexOf("#"));
    var myUrlTabName = myUrlTab.substring(0, 4);
    $("#content > div").hide();
    $("#tabs li:first span").attr("id", "current");
    $("#content > div:first").fadeIn();
    $("#tabs span").on("click", function(e) {
        e.preventDefault();
        if ($(this).attr("id") == "current") {
            return
        } else {
            resetTabs();
            $(this).attr("id", "current");
            $($(this).attr('name')).fadeIn()
        }
    });
    for (i = 1; i <= $("#tabs li").length; i++) {
        if (myUrlTab == myUrlTabName + i) {
            resetTabs();
            $("span[name='" + myUrlTab + "']").attr("id", "current");
            $(myUrlTab).fadeIn()
        }
    }
}
tabss();
$('.post-thumbnail').each(function() {
    $(this).attr({
        'src': $(this).attr('src').replace('default.jpg', 'hqdefault.jpg')
    })
});
resizeThumb("index", 350);
resizeThumbClass('.author_ss11', 's40-c');
$(".touchslider").touchSlider({});

function isonyax() {
    var a = jQuery(".blog-posts");
    a.isotope({
        itemSelector: ".post",
        resizable: false
    });
    $('#filters a,#index .post_labels a').click(function() {
        var selector = $(this).attr('data-filter');
        a.isotope({
            filter: selector
        });
        return false
    })
};
jQuery(window).load(isonyax);
jQuery(window).smartresize(isonyax);
$(function(e) {
    var i = "";
    var b = null;
    var a = ".blog-posts";
    var d = false;
    var g = e(window);
    var k = e(document);
    var f = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;

    function c(m) {
        e.getScript("http://" + m + ".disqus.com/blogger_index.js")
    }
    function j() {
        if (d) {
            return
        }
        d = true;
        if (!i) {
            $('.endtext').show();
            $('.loadtext').hide();
            return
        }
        b.find("a").hide();
        b.find("img").show();
        e.get(i, "html").done(function(o) {
            var m = e("<div></div>").append(o.replace(f, ""));
            var n = m.find(".blog-pager-older-link.loadmore");
            if (n) {
                i = n.attr("href")
            } else {
                i = "";
                b.hide()
            }
            var p = m.find(a).children(".date-outer");
            e(a).append(p);
            resizeThumb("index", 350);
            resizeThumbClass('.author_ss11', 's50-c');
            $('.post-thumbnail').each(function() {
                $(this).attr({
                    'src': $(this).attr('src').replace('default.jpg', '0.jpg')
                })
            });
            if (window._gaq) {
                window._gaq.push(["_trackPageview", i])
            }
            if (window.gapi && window.gapi.plusone && window.gapi.plusone.go) {
                window.gapi.plusone.go()
            }
            if (window.disqus_shortname) {
                c(window.disqus_shortname)
            }
            if (window.FB && window.FB.XFBML && window.FB.XFBML.parse) {
                window.FB.XFBML.parse()
            }
            e(a).isotope("insert", p);
            setTimeout(function() {
                e(a).isotope("insert", p)
            }, 1000);
            b.find("img").hide();
            b.find("a").show();
            d = false
        })
    }
    function l() {
        if (_WidgetManager._GetAllData().blog.pageType == "item") {
            return
        }
        i = e("a.blog-pager-older-link").attr("href");
        if (!i) {
            return
        }
        var n = e('<a class="loadpost end" href="javascript:;"><span class="loadtext"><span class="fa fa-sort-amount-asc"/>' + LoadMoreText + '</span><span class="endtext" style="display:none">' + NoMoreText + '</span></a>');
        n.click(j);
        var m = e('<img class="loading_img" src="' + Images_loader + '" style="display: none;">');
        b = e('</div><div class="load_wrap"></div>');
        b.append(n);
        b.append(m);
        $('.blog-posts').after(b);
        e("#blog-pager").hide()
    }
    e(document).ready(l)
});


//icon-tasks